package com.jfl.common;

import java.util.Map;

import com.google.common.collect.Maps;
import com.jfl.cache.CacheKey;

/**
 * 常量类
 * 
 * @author 赵炎
 * @version [V1.00, 2018年12月3日]
 * @since V1.00
 */
public interface Constants
{
    /**
     * 缓存Map
     */
    public static final Map<Class<?>, CacheKey> CACHEKEY_MAP = Maps.newHashMap();
    
    /**
     * 缓存命名空间
     */
    public static final String CACHE_NAMESPACE = "jfl-platform-cache:";
    
    // service constant
    public static final int SUCCESS = 0;
    
    public static final int ERROR = 1;
    
    public static final String DATA_UNIQUE = "1";
    
    public static final String DATA_NOT_UNIQUE = "0";
    
    // controller prefix
    public static final String MODULE_SYS_USER_PREFIX = "system/user/";
    
    public static final String MODULE_SYS_USER_PROFILE_PREFIX = "system/user/profile/";
    
    public static final String MODULE_SYS_DICT_TYPE_PREFIX = "system/dict/type/";
    
    public static final String MODULE_SYS_DICT_DATA_PREFIX = "system/dict/data/";
    
    public static final String MODULE_SYS_POST_PREFIX = "system/post/";
    
    public static final String MODULE_SYS_DEPT_PREFIX = "system/dept/";
    
    public static final String MODULE_SYS_ROLE_PREFIX = "system/role/";
    
    public static final String MODULE_SYS_MENU_PREFIX = "system/menu/";
    
    public static final String MODULE_SESSION_PREFIX = "system/session/";
    
    public static final String MODULE_MONITOR_LOG_PREFIX = "monitor/log/";
    
    // status
    
    /**
     * 正常
     */
    public static final String STATUS_NORMAL = "1";
    
    /**
     * 锁定
     */
    public static final String STATUS_LOCKED = "0";
    
    // 删除
    /**
     * 删除
     */
    public static final int YES = 0;
    
    /**
     * 未删除
     */
    public static final int NO = 1;
}
